
/*
* Copyright 2009, Center for Advanced Information Systems,Nanyang Technological University
*
* File name: QueryNodeID.java
*
* Abstract:
*
* Current Version:      0.1
* Auther:               Jin Changjiu
* Modified Date:        Jun.16,2009
*
*/
package gblend.exactquery;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Vector;

/**
 *
 * @author cjjin
 */
public class QueryNodeID {

private Vector<Integer> neighbors = new Vector<Integer>();
private int nodeid;
private int id=-1;
private String nodelable;
private int degree = 0;
private int oldid= 0;
private String nc = null;

public void setid(int tmpid)
{
    id=tmpid;
}

public int getid()
{
    return id;
}


public void setHashcode(int code)
{
    nodeid = code;
}

public int getHashcode()
{
    return nodeid;
}

public void setNodelabel(String lable)
{
    nodelable = lable;
}



public String getNodelable()
{
    return nodelable;
}

public void setDegree()
{
    degree++;
}

public int getDegree()
{
    return degree;
}

public void setNeighborId(int code)
{
    neighbors.addElement(code);

}

public Vector<Integer> getNeighborId()
{
    return neighbors;
}

public void setoldid(int old)
{
    oldid = old;
}

public int getoldid()
{
    return oldid;
}

public void setNCode(String code)
{
    nc = code;
}

public String getNCode()
{
    return nc;
}



}
